extends ../../layout

block content
    .container
        .row
            table.table.table-bordered.table-hover
                tr
                    th 用户名
                    th 密码
                    th 注册时间
                    th 删除操作
                each user in users
                    tr
                        td #{user.name}
                        td #{user.password}
                        td.time #{user.time}
                        td
                            a.btn.btn-danger.del(href='javascript:void(0)', data-url='/user/del', data-id='#{user._id}') 删除

    script(src='/js/delete.js', type='text/javascript')
    script(src='/libs/moment/moment.js', type='text/javascript')
    script(src='/js/time.js', type='text/javascript')